x=[0.5,0.5;0.7,0.7]
i=2
k=2;
le=10;
D=20;
while i<20
%if k>1
if abs(le-D)>0.1
    x(i+1,1)=rand(1,1);                         %standard uniform distribution
    x(i+1,2)=rand(1,1);
    [A,V,inputSize]=generateSimpleConnection(x);
    [D,k,le]=getNetworkLength(A,1.3,1.5);
else
    i=i+1;
    k=2;
    D=10000;
end
end
  [A,V,inputSize]=generateSimpleConnection(x)
  plotSimpleNetwork( A,V,inputSize)